jQuery.noConflict();
jQuery(document).ready(function($){
	$('#MediaTopBar').appendTo('#barraTopo td.social');
	$('#TabInterna').append("<tr><td colspan='3'><table width='100%' border='0' class='buscaProduto rodape'><form name='buscaprod' method='GET' action='listaProdutos.asp?IDLoja=<IDLoja>' onSubmit='return VerTexto(this)'><tr><td align='right' class='BuscaProcurar'>Procurar</td><td class='FundoBusca'>&nbsp;&nbsp;&nbsp;<input type='text' class='InputTextBuscaTopo' name='Texto' id='query' maxlength='70' value='' style='width:440px;'><input type='hidden' name='IDLoja' value='<IDLojaNum>'><input type='hidden' name='Y' value='<Y>'><input type='hidden' name='Digitada' value='True'></td><td align='right'  class='btBusca'><input type='image' name='ok' src='../lojas/00020738/images/btBusca.png'  /></td></tr></form></table></td></tr>");
	if(sPag.indexOf("FALECONOSCO.ASP")>=0){
		jQuery('span#idTitTextoFC').parent().children('p:first').html('<span style="margin-left:20px; font-size:12px; width: 650px; display:block;">Olá, se tiver alguma dúvida, por favor, envie-nos um email, ou se preferir fale conosco atravez do telefone (11) 3208-3777.</span> <br><br><table cellspacing="0" cellpadding="0" align="right"><tbody><tr><td bgcolor="#FF0000"><img width="10" height="1" src="images/shim.gif"></td><td class="smText" nowrap="">&nbsp;= campo obrigatório&nbsp;&nbsp;</td></tr></tbody></table>');
	}
	if(sPag.indexOf("LISTAPRODUTOS.ASP")>=0){
		jQuery('table[name="TabTitProd"] table:first').attr('id','idBuscaTable');
	}
	jQuery('ul img.wid').live('click', function(){
		var contractMaster = jQuery(this).parent().parent().parent().find('.PathCat0 a');
	    if(contractMaster.is('.opened')){
	        jQuery(this).parent().parent().parent().find('.PathCat0 a').removeClass('opened');
	        return false;
	    }
	    if(contractMaster.not('.opened')){
	        jQuery(this).parent().parent().parent().find('.PathCat0 a').addClass('opened');
	        return false;
	    }
    });
	jQuery('.ImgOpened').click();
});
